<?php

namespace app\exception;

class BizException extends \Exception
{
    public function __construct($code = 0)
    {
        $this->code = $code;
        parent::__construct(transL(sprintf("code.%d",$code)),$code);
    }
}